package com.proton.carepatchtemp.adapterholder;

import android.support.v7.widget.CardView;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.CheckBox;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.facebook.drawee.view.SimpleDraweeView;
import com.mcxtzhang.swipemenulib.SwipeMenuLayout;
import com.proton.carepatchtemp.R;

/**
 * Created by MoonlightSW on 2016/11/17.
 */

public class ReportHolder extends RecyclerView.ViewHolder {

    // Content View Elements

    public TextView mTv_report_time;
    public CardView mItem_sliding_lay;
    public ImageView mIv_delete;
    public SimpleDraweeView mSdv_profile_avatar;
    public TextView mTv_report_prf_name;
    public TextView mTv_highest_temp_rpt;
    public TextView mTv_test_sum_time;
    public ImageView mIv_more_choices;
    public TextView mTv_high_or_low_rpt;
    public ImageView mIv_collect;
    public TextView mTv_report_unit;
    public CheckBox mcb_report_select;
    public SwipeMenuLayout mSwipeMenuLayout;
    public FrameLayout mFrl_report_item;
    public LinearLayout mLnlReportItem;

    public ReportHolder(View itemView) {
        super(itemView);
        int i = R.layout.item_report;

        mLnlReportItem = itemView.findViewById(R.id.lnl_report_item);
        mTv_report_time = itemView.findViewById(R.id.tv_report_time);
        mItem_sliding_lay = itemView.findViewById(R.id.item_sliding_lay);
//        mSwipe_refresh_layout = (com.daimajia.swipe.SwipeLayout) itemView.findViewById(R.id.swipe_refresh_layout);
        mIv_delete = itemView.findViewById(R.id.iv_delete);
        mSdv_profile_avatar = itemView.findViewById(R.id.sdv_profile_avatar);
        mTv_report_prf_name = itemView.findViewById(R.id.tv_report_prf_name);
        mTv_highest_temp_rpt = itemView.findViewById(R.id.tv_highest_temp_rpt);
        mTv_test_sum_time = itemView.findViewById(R.id.tv_test_sum_time);
        mIv_more_choices = itemView.findViewById(R.id.iv_more_choices);
        mTv_high_or_low_rpt = itemView.findViewById(R.id.tv_high_or_low_rpt);
        mIv_collect = itemView.findViewById(R.id.iv_collect);
        mTv_report_unit = itemView.findViewById(R.id.tv_report_unit);
        mcb_report_select = itemView.findViewById(R.id.cb_report_select);
        mSwipeMenuLayout = itemView.findViewById(R.id.swipe_refresh_layout);
        mFrl_report_item = itemView.findViewById(R.id.frl_report_item);
    }
}
